| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

AttributeGenerationInfo.h
1 // AttributeGenerationInfo.h
3 //
5
6 namespace nkGraphics
7 {
11 struct AttributeGenerationInfo final
12 {
13 nkMemory::BufferView<unsigned char> _positionBuffer ;
14 nkMemory::BufferView<unsigned char> _texCoordBuffer ;
15 nkMemory::BufferView<unsigned char> _indexBuffer ;
16
17 MeshInputLayoutAttribute _positionAttribute ;
18 MeshInputLayoutAttribute _texCoordAttribute ;
19 INDEX_FORMAT _indexFormat = INDEX_FORMAT::UINT32 ;
20
21 unsigned int _positionBufferStride = 0u ;
22 unsigned int _texCoordBufferStride = 0u ;
23
24 bool _frontCcw = true ;
25 } ;
26 }
nkGraphics::INDEX_FORMAT
INDEX_FORMAT
Enumerates all formats supported for indices in a mesh.
Definition: IndexFormat.h:12
nkGraphics::MeshInputLayoutAttribute
Describes an attribute in a mesh layout.
Definition: MeshInputLayoutAttribute.h:12
nkMemory::BufferView< unsigned char >
nkGraphics::AttributeGenerationInfo::_positionAttribute
MeshInputLayoutAttribute _positionAttribute
Attribute describing how to find back the positions in linked buffer.
Definition: AttributeGenerationInfo.h:17
nkGraphics::AttributeGenerationInfo::_texCoordAttribute
MeshInputLayoutAttribute _texCoordAttribute
Attribute describing how to find back the texture coordinates in linked buffer.
Definition: AttributeGenerationInfo.h:18
nkGraphics::AttributeGenerationInfo::_texCoordBuffer
nkMemory::BufferView< unsigned char > _texCoordBuffer
Buffer in which the texture coordinates information can be found.
Definition: AttributeGenerationInfo.h:14
nkGraphics::AttributeGenerationInfo::_frontCcw
bool _frontCcw
Whether the front is considered counter clockwise or not. If false, computed directions will be negat...
Definition: AttributeGenerationInfo.h:24
nkGraphics::AttributeGenerationInfo
Holds information for an attribute generation request.
Definition: AttributeGenerationInfo.h:12
nkGraphics::AttributeGenerationInfo::_indexBuffer
nkMemory::BufferView< unsigned char > _indexBuffer
The index buffer, if any.
Definition: AttributeGenerationInfo.h:15
nkGraphics::AttributeGenerationInfo::_positionBuffer
nkMemory::BufferView< unsigned char > _positionBuffer
Buffer in which the position information can be found.
Definition: AttributeGenerationInfo.h:13
nkGraphics::AttributeGenerationInfo::_positionBufferStride
unsigned int _positionBufferStride
Stride of the position buffer.
Definition: AttributeGenerationInfo.h:21
nkGraphics::AttributeGenerationInfo::_texCoordBufferStride
unsigned int _texCoordBufferStride
Stride of the texture coordinates buffer.
Definition: AttributeGenerationInfo.h:22
nkGraphics::AttributeGenerationInfo::_indexFormat
INDEX_FORMAT _indexFormat
The index format, if an index buffer is provided.
Definition: AttributeGenerationInfo.h:19
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::INDEX_FORMAT::UINT32
@ UINT32
Unsigned integer.